#include "resumeMessage.h"

ResumeMessage::ResumeMessage(MtpProtocol* packet) : MtpMessage(packet)
{

}

ResumeMessage::ResumeMessage(const int64_t& movieId, const int& scene)
	: MtpMessage(new MtpProtocol(L"pause")), param(movieId,scene)
{

}

void ResumeMessage::decodeBody()
{
	MtpMessage::decodeBody();
	param.jsonDeserialize(jsonContent);
}

void ResumeMessage::encodeBody()
{
	jsonContent = param.jsonStr();
	MtpMessage::encodeBody();
}

const SceneParam& ResumeMessage::getParam() const
{
	return param;
}
